import request from '@/utils/request'

// 查询残疾军人信息列表
export function listDisabled_soldier(query) {
  return request({
    url: '/archive_info/disabled_soldier/list',
    method: 'get',
    params: query
  })
}

// 查询残疾军人信息详细
export function getDisabled_soldier(id) {
  return request({
    url: '/archive_info/disabled_soldier/' + id,
    method: 'get'
  })
}

// 新增残疾军人信息
export function addDisabled_soldier(data) {
  return request({
    url: '/archive_info/disabled_soldier',
    method: 'post',
    data: data
  })
}

// 修改残疾军人信息
export function updateDisabled_soldier(data) {
  return request({
    url: '/archive_info/disabled_soldier',
    method: 'put',
    data: data
  })
}

// 删除残疾军人信息
export function delDisabled_soldier(id) {
  return request({
    url: '/archive_info/disabled_soldier/' + id,
    method: 'delete'
  })
}

// 导出残疾军人信息
export function exportDisabled_soldier(query) {
  return request({
    url: '/archive_info/disabled_soldier/export',
    method: 'get',
    params: query
  })
}